package org.link.bean;

/**
 * 
 * project_name:forumweb
 * package_name:org.link.bean
 * file_name:Article.java
 * @author Link
 * create_date:2015年10月22日 上午10:02:14
 * modified_date:
 * description: 帖子表实体类
 *
 */
public class Article {

	private int id;				//帖子逻辑id号
	private String title;		//帖子标题
	private String content;		//帖子内容
	private int main;			//主贴id号
	private int pbid;			//父版块id号
	private String pbName;		//父板块名称
	private int bid;			//直接板块id号
	private String bName;		//子版块名称
	private String createTime;	//创建帖子时间
	private int point;			//帖子悬赏分数
	private int good;			//好评数
	private int bad;			//差评数
	private int userId;			//发帖人id号
	private String userName;	//发帖人邮箱
	private int isend;			//是否结贴
	private int istop;			//是否置顶
	private int isdelete;		//是否已删除
	
	public Article() {			//无參构造方法
		super();
	}
	
	
	public Article(int id, String title, String content, int main, int pbid,
			String pbName, int bid, String bName, String createTime, int point,
			int good, int bad, int userId, String userName, int isend,
			int istop, int isdelete) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.main = main;
		this.pbid = pbid;
		this.pbName = pbName;
		this.bid = bid;
		this.bName = bName;
		this.createTime = createTime;
		this.point = point;
		this.good = good;
		this.bad = bad;
		this.userId = userId;
		this.userName = userName;
		this.isend = isend;
		this.istop = istop;
		this.isdelete = isdelete;
	}


	public Article(int id, String title, String content, int main, int pbid,
			int bid, String createTime, int point, int good, int bad,
			int userId, int isend, int istop, int isdelete) {				//全參构造方法
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.main = main;
		this.pbid = pbid;
		this.bid = bid;
		this.createTime = createTime;
		this.point = point;
		this.good = good;
		this.bad = bad;
		this.userId = userId;
		this.isend = isend;
		this.istop = istop;
		this.isdelete = isdelete;
	}

	public Article(String title, String content, int main, int pbid, int bid,
			String createTime, int point, int good, int bad, int userId,
			int isend, int istop, int isdelete) {							//缺少逻辑id号的构造方法
		super();
		this.title = title;
		this.content = content;
		this.main = main;
		this.pbid = pbid;
		this.bid = bid;
		this.createTime = createTime;
		this.point = point;
		this.good = good;
		this.bad = bad;
		this.userId = userId;
		this.isend = isend;
		this.istop = istop;
		this.isdelete = isdelete;
	}

	
	public String getPbName() {
		return pbName;
	}

	public void setPbName(String pbName) {
		this.pbName = pbName;
	}

	public String getbName() {
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getMain() {
		return main;
	}

	public void setMain(int main) {
		this.main = main;
	}

	public int getPbid() {
		return pbid;
	}

	public void setPbid(int pbid) {
		this.pbid = pbid;
	}

	public int getBid() {
		return bid;
	}

	public void setBid(int bid) {
		this.bid = bid;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public int getGood() {
		return good;
	}

	public void setGood(int good) {
		this.good = good;
	}

	public int getBad() {
		return bad;
	}

	public void setBad(int bad) {
		this.bad = bad;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getIsend() {
		return isend;
	}

	public void setIsend(int isend) {
		this.isend = isend;
	}

	public int getIstop() {
		return istop;
	}

	public void setIstop(int istop) {
		this.istop = istop;
	}

	public int getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(int isdelete) {
		this.isdelete = isdelete;
	}

	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", content="
				+ content + ", main=" + main + ", pbid=" + pbid + ", pbName="
				+ pbName + ", bid=" + bid + ", bName=" + bName
				+ ", createTime=" + createTime + ", point=" + point + ", good="
				+ good + ", bad=" + bad + ", userId=" + userId + ", userName="
				+ userName + ", isend=" + isend + ", istop=" + istop
				+ ", isdelete=" + isdelete + "]";
	}

}
